<template>
	<div class="container">

		<Category title="游戏">
			<template scope="atguigu">
				<ul>
					<li v-for="(g,index) in atguigu.games" :key="index">{{g}}</li>
				</ul>
			</template>
		</Category>

		<Category title="游戏">
			<template scope="{games}">
				<ol>
					<li style="color:red" v-for="(g,index) in games" :key="index">{{g}}</li>
				</ol>
			</template>
		</Category>

		<Category title="游戏">
			<template slot-scope="{games}">
				<h4 v-for="(g,index) in games" :key="index">{{g}}</h4>
			</template>
		</Category>
		<Category title="消息">
			<template slot-scope="atguigu">
				<h4>{{atguigu.msg}}</h4>
			</template>
		</Category>
	    <category-default title="默认">
          <div>html结构1</div>
          <div>html结构2</div>
          <h3>dsss</h3>
        </category-default>

        <category-name title="命名">
        	<div slot="center">中间</div>
        	<div slot="footer">页脚</div>
        </category-name>
	</div>
</template>

<script>
	import Category from './components/Category'
	import CategoryDefault from './components/CategoryDefault'
	import CategoryName from './components/CategoryName'
	export default {
		name:'App',
		components:{Category, CategoryDefault, CategoryName},
	}
</script>

<style scoped>
	.container,.foot{
		display: flex;
		justify-content: space-around;
	}
	h4{
		text-align: center;
	}
</style>
